home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / rTutors / part1 / rTutor.make < prev    next >
Encoding:
Text File  |  1990-06-19  |  1.3 KB  |  36 lines  |  [TEXT/pdos]

  1. * Just to be sure everybody gets to read all this stuff, let's turn on echo
  2. set echo on
  3. *
  4. * This exec file will compile, link, etc to produce the rTutor.S16 application
  5. *
  6. * First, we compile and link the APW C source to produce the data fork
  7. *
  8. compile rtutor.cc keep=$
  9. linkIIGS 2/start.root rtutor.root -lib 2/clib -t exe -o rtutor.dfork
  10. *
  11. * Second, we compile the Rez source to create the resource fork
  12. * be sure to set the resulting file type to that of a "resource only file"
  13. * see Apple II File Type Note for file type $5E
  14. compile rtutor.rez keep=rtutor.rfork rez=(-t $5E)
  15. *
  16. * Now put the pieces together to form the complete app
  17. * First, we delete the old app (which may or may not exist)
  18. * To protect against this script exiting if we try to delete a file
  19. * that doesn't exist, we'll just turn off the "exit" variable before
  20. * we try to delete the file.  Turn it back on afterwards to catch other
  21. * errors
  22. unset exit
  23. delete rtutor.s16
  24. set exit on
  25. * Copy the data fork to the new app
  26. duplicate -d rtutor.dfork rtutor.s16
  27. * Copy the resource fork to the new app
  28. duplicate -r rtutor.rfork rtutor.s16
  29. *
  30. * Set the file type of the resulting application to S16
  31. filetype rtutor.s16 s16
  32. *
  33. * That's it, go run the app and then study it to learn more about how
  34. * wonderful resources are!!
  35. *
  36.